package com.xmg.shop.api.service;


import com.xmg.shop.api.domain.Brand;
import com.xmg.shop.api.page.PageResult;
import com.xmg.shop.api.query.BrandQueryObject;

import java.util.List;

public interface IBrandService {
    int delete(Long id);

    int save(Brand record);

    Brand get(Long id);

    List<Brand> selectAll();

    int update(Brand record);

    PageResult query(BrandQueryObject qo);

    /**
     * 保存或更新商品
     * @param brand
     */
    void saveORupdate(Brand brand, Long[] catalogId);

    List<Brand> selectBrandNameAndId();

}
